/* ----------------------------------------------------------------------
 * File: 		inter.hpp
 * Created by:		Taylor Wood
 * Email:		Tdwood2@asu.edu
 * Student ID:		1202553801
 *
 * Description:
 * This file contains all of the prototypes and declarations for
 * inter.cpp. 
 * ----------------------------------------------------------------------*/

#ifndef _INTER_HPP_
#define _INTER_HPP_

using std::cout;
using std::string;
using std::vector;
using std::endl;

struct Jump {
	int pc;
	int jnum;
};

unsigned int index, opNum, relOp, jumpVal;
int pc = 2;

bool program();
void var_section();
void body();
void var_section();
void id_list();
void stmt_list();
void stmt();
void assign_stmt();
void print_stmt();
void while_stmt();
void if_stmt();
void switch_stmt();
void expr();
void primary();
void op();
void condition();
void relop();
void case_list(string, int);
void case_stmt(int);
void default_case();
void printJumpLoc();

#endif
